import request from '@/axios';
import { baseUrl } from '@/config/env';


export const select = (params) => request({
    url: baseUrl + '/app/admin/articleCategory/select',
    method: 'get', 
    params 
  });
  
export const add = (data) => request({
    url: baseUrl + '/app/admin/articleCategory/insert',
    method: 'post',
    data: data
  });
  
  export const update  = (data) => request({
    url: baseUrl + '/app/admin/articleCategory/update',
    method: 'post',
    data: data
  });
  
  export const del  = (id) => request({
    url: baseUrl + '/app/admin/articleCategory/delete',
    method: 'post',
    data:{id:id}
  });
  